package com.rainman.noswagger.info_bean;

import com.github.javaparser.ast.expr.AnnotationExpr;
import lombok.Data;


@Data
public class AnnoInfoBean {

    private String annoName;
    private String fullInfo;

    public AnnoInfoBean(AnnotationExpr annotationExpr){
        annoName= annotationExpr.getNameAsString();
        fullInfo=annotationExpr.toString();

        //去注释
        if(annotationExpr.getComment().isPresent()){
            fullInfo=fullInfo.replaceFirst(annotationExpr.getComment().get().toString(),"").trim();
        }

    }

}
